class A {
    constructor() {
        console.log('original ctor invoked');
        this.property1 = 'property value';
    }
}

class B extends A {

}

A.prototype.constructor = 1;
// function() {
//     console.log(`hooked ctor invoked...${this.property1}`);
// };

const a = new A();
console.log(a.constructor)